Optimal. Leaf size=107 \[ \frac{8 c \cos (e+f x) (a \sin (e+f x)+a)^{m+1}}{a f \left (4 m^2+16 m+15\right ) \sqrt{c-c \sin (e+f x)}}+\frac{2 \cos (e+f x) \sqrt{c-c \sin (e+f x)} (a \sin (e+f x)+a)^{m+1}}{a f (2 m+5)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.354111, antiderivative size = 107, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 36, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {2841, 2740, 2738} \[ \frac{8 c \cos (e+f x) (a \sin (e+f x)+a)^{m+1}}{a f \left (4 m^2+16 m+15\right ) \sqrt{c-c \sin (e+f x)}}+\frac{2 \cos (e+f x) \sqrt{c-c \sin (e+f x)} (a \sin (e+f x)+a)^{m+1}}{a f (2 m+5)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2841
Rule 2740
Rule 2738
Rubi steps
\begin{align*} \int \cos ^2(e+f x) (a+a \sin (e+f x))^m \sqrt{c-c \sin (e+f x)} \, dx &=\frac{\int (a+a \sin (e+f x))^{1+m} (c-c \sin (e+f x))^{3/2} \, dx}{a c}\\ &=\frac{2 \cos (e+f x) (a+a \sin (e+f x))^{1+m} \sqrt{c-c \sin (e+f x)}}{a f (5+2 m)}+\frac{4 \int (a+a \sin (e+f x))^{1+m} \sqrt{c-c \sin (e+f x)} \, dx}{a (5+2 m)}\\ &=\frac{8 c \cos (e+f x) (a+a \sin (e+f x))^{1+m}}{a f \left (15+16 m+4 m^2\right ) \sqrt{c-c \sin (e+f x)}}+\frac{2 \cos (e+f x) (a+a \sin (e+f x))^{1+m} \sqrt{c-c \sin (e+f x)}}{a f (5+2 m)}\\ \end{align*}
Mathematica [A] time = 0.560205, size = 111, normalized size = 1.04 \[ -\frac{2 \sqrt{c-c \sin (e+f x)} ((2 m+3) \sin (e+f x)-2 m-7) \left (\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )\right )^3 (a (\sin (e+f x)+1))^m}{f (2 m+3) (2 m+5) \left (\cos \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{1}{2} (e+f x)\right )\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.348, size = 0, normalized size = 0. \begin{align*} \int \left ( \cos \left ( fx+e \right ) \right ) ^{2} \left ( a+a\sin \left ( fx+e \right ) \right ) ^{m}\sqrt{c-c\sin \left ( fx+e \right ) }\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 2.14321, size = 421, normalized size = 3.93 \begin{align*} -\frac{2 \,{\left (a^{m} \sqrt{c}{\left (2 \, m + 7\right )} + \frac{a^{m} \sqrt{c}{\left (2 \, m + 15\right )} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - \frac{2 \, a^{m} \sqrt{c}{\left (2 \, m - 5\right )} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - \frac{2 \, a^{m} \sqrt{c}{\left (2 \, m - 5\right )} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac{a^{m} \sqrt{c}{\left (2 \, m + 15\right )} \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} + \frac{a^{m} \sqrt{c}{\left (2 \, m + 7\right )} \sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}}\right )} e^{\left (2 \, m \log \left (\frac{\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + 1\right ) - m \log \left (\frac{\sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 1\right )\right )}}{{\left (4 \, m^{2} + 16 \, m + \frac{2 \,{\left (4 \, m^{2} + 16 \, m + 15\right )} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac{{\left (4 \, m^{2} + 16 \, m + 15\right )} \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} + 15\right )} f \sqrt{\frac{\sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.78459, size = 402, normalized size = 3.76 \begin{align*} \frac{2 \,{\left ({\left (2 \, m + 3\right )} \cos \left (f x + e\right )^{3} +{\left (2 \, m - 1\right )} \cos \left (f x + e\right )^{2} +{\left ({\left (2 \, m + 3\right )} \cos \left (f x + e\right )^{2} + 4 \, \cos \left (f x + e\right ) + 8\right )} \sin \left (f x + e\right ) + 4 \, \cos \left (f x + e\right ) + 8\right )} \sqrt{-c \sin \left (f x + e\right ) + c}{\left (a \sin \left (f x + e\right ) + a\right )}^{m}}{4 \, f m^{2} + 16 \, f m +{\left (4 \, f m^{2} + 16 \, f m + 15 \, f\right )} \cos \left (f x + e\right ) -{\left (4 \, f m^{2} + 16 \, f m + 15 \, f\right )} \sin \left (f x + e\right ) + 15 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]